import { createApp } from 'vue'
import pinia from './stores/pinia';
import App from './App.vue'
import router from './router'
// ui库的重置样式文件
import { initAntDIcons } from './utils';

import './style/index.css'
import 'splitpanes/dist/splitpanes.css'
import 'ant-design-vue/dist/reset.css';
import { setupDirectives } from './directive';
// @ts-ignore
import VueSignaturePad from "vue-signature-pad";
import "vue3-colorpicker/style.css";
// 引入动画
import 'animate.css/animate.min.css'

import 'highlight.js/styles/stackoverflow-light.css'
import hljs from "highlight.js/lib/core";
import json from "highlight.js/lib/languages/json";
hljs.registerLanguage("json", json)

const app = createApp(App)
// @ts-ignore
window['$vue'] = app

// 注册ui库的字体图标
initAntDIcons(app)
// 注册指令
setupDirectives(app)

app.use(pinia)
app.use(router)
app.use(VueSignaturePad);   
app.mount('#app')


